<?php

namespace HelloWeb\LottoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Library\BaseEntity;
use HelloWeb\LottoBundle\Entity\Interfaces\LottoInterface;

/**
 * Lotto
 *
 * @ORM\Table(name="hw_lotto")
 * @ORM\Entity(repositoryClass="HelloWeb\LottoBundle\Entity\Repository\LottoRepository")
 */
class Lotto extends BaseEntity implements LottoInterface
{

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    /**
     * var string
     * 
     * @ORM\Column(name="draw_no", type="string", length=20, nullable=false)
     */
    private $drawNo;

    /**
     * @var \Date
     * 
     * @ORM\Column(name="draw_date", type="date")
     */
    private $drawDate;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="integer")
     */
    private $type;
    
    /**
     * @ORM\OneToMany(targetEntity="LottoNumber", mappedBy="lotto",cascade={"remove","persist"})
     */
    private $numbers;

    /**
     * Set drawNo
     *
     * @param string $drawNo
     * @return Lotto
     */
    public function setDrawNo($drawNo)
    {
        $this->drawNo = $drawNo;

        return $this;
    }

    /**
     * Get drawNo
     *
     * @return string 
     */
    public function getDrawNo()
    {
        return $this->drawNo;
    }

    /**
     * Set drawDate
     *
     * @param \Date $drawDate
     * @return Lotto
     */
    public function setDrawDate($drawDate)
    {
        $this->drawDate = $drawDate;

        return $this;
    }

    /**
     * Get drawDate
     *
     * @return \Date
     */
    public function getDrawDate()
    {
        return $this->drawDate;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

    public function getNumbers()
    {
        return $this->numbers;
    }

    public function setNumbers($numbers)
    {
        $this->numbers = $numbers;
        return $this;
    }
 
 
    
    
}
